﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Financial.Forms
{
    public partial class ProfileForm : Form
    {
        public ProfileForm()
        {
            InitializeComponent();
            this.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ConfigurationManager.WriteSetting("Name", this.textBox1.Text);
            ConfigurationManager.WriteSetting("Email", this.textBox2.Text);
            ConfigurationManager.WriteSetting("Symbols", this.textBox3.Text);
            CloseForm();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            CloseForm();
        }

        private void CloseForm()
        {
            this.Dispose();
            this.Close();
        }
    }
}
